package com.bocai.kelala.net;

import javax.inject.Named;
import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import okhttp3.OkHttpClient;

/**
 * 作者 yuanfei on 2017/2/23.
 * 邮箱 yuanfei221@126.com
 */
@Module
public class RetrofitModule {

    @Singleton
    @Provides
    public LocalRetrofit providerLocalRetrofit(@Named("cache") OkHttpClient okHttpClient){
        return new LocalRetrofit(okHttpClient);
    }

}
